package com.cyq.day16.game;

public class Hero {
    String heroName;//姓名
    int level=6;//等级
    long gold=100;//金币
    public void introduce(){
        System.out.println("我的名字是"+heroName);
        System.out.println("我现在"+level+"级");
        System.out.println("当前有金币"+gold);
    }
    public void skill(Hero h){
        System.out.print("使用技能");
    }
    public void show(){
        System.out.println("金币剩余"+gold);
    }

    public void attack(){

    }
    private void defend(){


    }}
